function f = eg2(x)
%  EG2 (CUTE)  Function   
%x0=[1,1,1...,1]..  
%fmin=n/2,m=20
%Author:shi yangyang
n=length(x);
f=0.50*sin(x(n)*x(n));
for i=1:n-1
f=f+sin(x(1)+x(i)*x(i)-1.0);
end
f;